<?php
 Session_Start () ;
 Include ("../../include/garennes.cfg") ;
 Include ("../../include/init.php") ;
 Include ("../include/config.inc") ;
 verif_droits ($droit_courant, $_SESSION ["code"]) ;
 
 $temps = var_courante ("temps", 0, 3000) ;

 If (themeparsession ($_SESSION ["code"]) > 0) { $param_theme = parametres_theme (themeparsession ($_SESSION ["code"])) ; }
 Else { $param_theme = parametres_theme (1) ; }
 $rep_themes = "../../images/themes/" ;
 Include ($rep_themes.$param_theme ["nom_repertoire"]."/".$param_theme ["fichier_config"]) ;
 
 If ($temps < 3000) { $temps = 3000 ; } ElseIf ($temps > 20000) { $temps = 20000 ; }
 
 Echo "<HTML><HEAD>" ;
 entete_html ("Garennes", "", 0) ;
 Echo styles ("none", "none", "none", $theme [0][32], "none") ;
 Echo "<SCRIPT>" ;
 Echo " var repetition=null\n" ;
 Echo " function fermefenetre() { window.close() }\n" ;
 Echo " function cestparti() { repetition=setTimeout(\"fermefenetre()\",".$temps.") }\n" ;
 Echo "</SCRIPT>" ;
 Echo "</HEAD>" ;
 
 Echo "<BODY BGCOLOR=\"".$theme [0][3]."\" TEXT=\"".$theme [0][4]."\" onContextMenu=\"return false\">" ;
 Echo "<IMG SRC=\"../../images/grand_logo.png\" BORDER=0 TITLE=\"Le lapin, le lapin...\"><BR><CENTER>Bienvenue.</CENTER>" ;
 Echo "<SCRIPT> cestparti() </SCRIPT>" ;
 Echo "</BODY>" ;
 Echo "</HTML>" ;
?>